home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #3
/
Amiga Plus CD - 1996 - No. 3.iso
/
demo-versionen
/
databaseprofessional_v3.0
/
clipart
/
book.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-09-13
|
1KB
|
71 lines
/* book index */
PARSE ARG argline
PARSE VAR argline name shownew .
OPTIONS RESULTS
top = 20
left = 5
xbox = 150
ybox = 17
xoff = xbox+2
yoff = ybox+2
Open(file,name,R)
IF RC ~= 5 THEN EXIT
idx = 1
weiter = 0
DO WHILE weiter = 0
title.idx = ReadLn(file)
idx = idx + 1
weiter = EOF(file)
END
Close(file)
ADDRESS DataBase
GetMaskSize
size = result
width = WORD(size,1)
height = WORD(size,2)
ClearMask
ADDRESS
x = left
y = top
c = 1
row = 0
weiter = 0
ADDRESS DataBase
DO WHILE c < idx-1
Box x y xbox ybox 1000
Text x+4 y+12 1 title.c
c = c + 1
y = y + yoff
IF y > height-ybox THEN DO
x = x + xoff
IF row = 0 THEN row = c-1
IF x+xbox > width THEN c = idx
y = top
END
END
WaitCommand "Verzeichnis wählen ..."
comm = result
IF WORDS(comm) ~= 3 THEN DO
IF shownew = 1 THEN
Show NEW
EXIT
END
mx = WORD(comm,1)
my = WORD(comm,2)
nr = ((my-top)%yoff+1) + ((mx-left)%xoff) * row
Display Off
Search "#?/" || title.nr || "#?"
Display On
IF shownew = 1 THEN
Show NEW